//
//  WSVideo.h
//  CharonTVProject
//
//  Created by karong on 2023/7/31.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface WSVideo : NSObject
///id
@property (nonatomic, assign) NSInteger id;
///评分
@property (nonatomic, assign) NSInteger score;
///播放数
@property (nonatomic, assign) NSInteger play_num;
///1:連载中 2:已完结
@property (nonatomic, assign) NSInteger finish;
///標題(第x集)
@property (nonatomic, strong) NSString * title;
///短剧标题
@property (nonatomic, strong) NSString * tv_title;
///短剧封面
@property (nonatomic, strong) NSString * cover;
///短剧简介
@property (nonatomic, strong) NSString * intro;
///分类名
@property (nonatomic, strong) NSString * category_name;
///連載狀態文案
@property (nonatomic, strong) NSString * finish_txt;
///url
@property (nonatomic, strong) NSString * url;
///金币 0-免費
@property (nonatomic, assign) NSInteger coins;
///本集是否购买（付費类型为金币支付时）
@property (nonatomic, assign) NSInteger is_buy;
///创建时间
@property (nonatomic, assign) NSTimeInterval created;
///更新时间
@property (nonatomic, assign) NSTimeInterval updated;
///序号
@property (nonatomic, assign) NSInteger sort;
///点赞数
@property (nonatomic, assign) NSInteger like_num;
@property (nonatomic, assign) NSInteger pay_type;

/**
 排行专用
 */
///排行榜类型：1-必读榜 2-新剧榜 3-完结榜
@property (nonatomic, assign) NSInteger sort_type;
///是否更多 走排行榜接口，传sort_type
@property (nonatomic, assign) NSInteger is_more;
///榜单列表
@property (nonatomic, strong) NSArray * list;
/**
 收藏专用
 */
///tv_id
@property (nonatomic, assign) NSInteger tv_id;
///是否VIP
@property (nonatomic, assign) NSInteger is_vip;
///章节ID
@property (nonatomic, assign) NSInteger chapter_id;
///章节名
@property (nonatomic, strong) NSString * chapter_title;
/**
 搜索專用
 */
///名字
@property (nonatomic, strong) NSString * name;
/**
 點讚列表專用
 */
///周期1-一周內2-更早
@property (nonatomic, assign) NSInteger period;

///自定义属性，用於編輯時记录选中情况
@property (nonatomic, assign) BOOL isSelected;
///自定已屬性，用於記錄是否點讚
@property (nonatomic, assign) BOOL isLike;
///自定义属性，用於記錄是否請求過點讚接口
@property (nonatomic, assign) BOOL isRequestForFavorite;

- (CGSize)cellSize;
- (UIEdgeInsets)inset;
///是否需要解锁
- (BOOL)needPay;
@end

NS_ASSUME_NONNULL_END
